package com.i8office.android.zhihuixinwu.module.contract;

import com.cyan.tools.base.BasePresenter;
import com.cyan.tools.base.BaseView;
import com.cyan.tools.callback.RequestCallback;
import com.i8office.android.zhihuixinwu.bean.Preview;

import io.reactivex.disposables.Disposable;

/**
 * Created by pc on 2018/7/7.
 */

public interface PreviewContract {
    interface Model {
        Disposable getPreview(RequestCallback<Preview> requestCallback, String id);
        Disposable getNewsPreviewResult(RequestCallback<Preview> requestCallback, String id);
        Disposable getExcelPreview(RequestCallback<Preview> requestCallback, String id);
        Disposable getCebPreview(RequestCallback<Preview> requestCallback, String id);
    }

    interface View extends BaseView{
        void showPreview(Preview preview);
        void showMessage(String message);
        void showError();
        void waitResult();
    }

    interface Presenter extends BasePresenter{
        void getPreview(String id);
        void getNewsPreviewResult(String id);
        void getPreview(String id,String fileName);
    }
}
